package com.huawei.appgallery.forum.section.buoy.action;

import android.app.Activity;
import com.huawei.appgallery.assistantdock.base.externalaction.openviewaction.IOpenViewAction;
import com.huawei.appgallery.forum.user.api.IUserHomePageProtocol;
import com.huawei.secure.android.common.intent.SafeIntent;
import o.dys.a;
import o.fho;
import o.fiu;
import o.fjb;

public class OpenUserHomeAction extends IOpenViewAction {
    public static final String ACTION_OPEN_UESR_HOME = "com.huawei.gamebox.section.user.ACTION_OPEN_UESR_HOME";

    public OpenUserHomeAction(a aVar, SafeIntent safeIntent) {
        super(aVar, safeIntent);
    }

    public void onAction() {
        if (this.callback instanceof Activity) {
            fjb ˎ = fho.ˏ().ˋ("User").ˎ("UserHomePageActivity");
            IUserHomePageProtocol iUserHomePageProtocol = (IUserHomePageProtocol) ˎ.ˊ();
            iUserHomePageProtocol.setUri("forum|user_detail_topic");
            iUserHomePageProtocol.setUserId(this.intent.getStringExtra("UserId"));
            iUserHomePageProtocol.setType(this.intent.getIntExtra("Type", 0));
            iUserHomePageProtocol.setDomainId(this.intent.getStringExtra("DomainId"));
            fiu.ˊ().ˏ((Activity) this.callback, ˎ);
        }
    }
}
